<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 200px;background-color: pink;
            transition: all 0.4s;
        }
        div:hover{
            /* 缩放 - 水平缩放0.8倍，高度不变*/
            /* transform:scale(0.8,1); */
            /* 缩放 - 高度缩放0.8倍，水平不变*/
            /* transform:scale(1,0.8); */
            /* 高度和宽度都变0.8 */
            transform: scale(1.2);
        }

    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>